package com.md.controller;

import com.md.api.authentication.InternalApi;
import com.md.application.service.users.InternalApplicationService;
import com.md.model.request.IdListRequest;
import com.md.model.response.authentication.users.InternalUsersResponse;
import com.md.model.system.CommonResult;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 刘骄阳
 * 2023-12-27 16:52
 */
@RestController
@RequiredArgsConstructor
public class InternalController implements InternalApi {
  private final InternalApplicationService internalApplicationService;

  /**
   * 查询用户信息
   *
   * @param request 用户id列表
   * @return 操作结果
   */
  @Override
  public CommonResult<List<InternalUsersResponse>> selectUserListByIds(final IdListRequest request) {
    return internalApplicationService.selectUserListByIds(request);
  }
}
